﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace eLoan.Models
{
    [Table("PrintedCheque")]
    public class PrintedCheque : PrintedChequeFields
    { }

    public class PrintedChequeFields
    {
        [Key]
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Bank")]
        public int BankID { get; set; }

        [Display(Name = "Cheque No")]
        public string ChequeNo { get; set; }

        [Display(Name = "Cheque Amount")]
        public decimal ChequeAmount { get; set; }

        [Display(Name = "Date Printed")]
        public DateTime DatePrinted { get; set; }

        [Display(Name = "Printed By")]
        public string PrintedBy { get; set; }

        [Display(Name = "Is Void")]
        public bool IsVoid { get; set; }

        [Display(Name = "Void Date")]
        public DateTime? VoidDate { get; set; }

        [Display(Name = "Void By")]
        public string VoidBy { get; set; }
    }

}